package com.cms.service;

import java.util.List;

import com.cms.model.AppInfo;
import com.cms.model.AppScreenshot;
import com.cms.model.AppVersionInfo;
import com.cms.model.AppversionTerraceInfo;
import com.cms.model.TerraceInfo;

public interface AppInfoService {
	public List<AppInfo> getAppInfos();
	public AppInfo getAppInfoByAppNumber(String appNumber);
	public List<AppInfo> queryAppInfo(int cpid,int categoryparentid,int categoryid,String appName);
	public boolean saveAppInfo(AppInfo model);
	public boolean updateAppInfo(AppInfo model);
	public boolean deleteAppInfo(AppInfo model);
	public boolean saveAppInfoStatus(AppInfo model);
	public boolean updateAppFile(AppInfo model);
	/**
	 * 
	 * @param model
	 * @return
	 */
	public boolean saveAppScreenshot(AppScreenshot model);
	public List<AppScreenshot> getAppScreenshots();
	public List<AppScreenshot> getAppScreenshotByAppNumber(String appNumber);
	public List<AppScreenshot> getAppScreenshotByAppVersionNumber(String appversionNumber,String type);
	public List<AppScreenshot> getAppScreenshotBychannelapkNumber(String channelapkNumber,String type);
	public List<AppScreenshot> getAppScreenshotByModel(AppScreenshot model);
	public AppScreenshot getAppScreenshotById(String id);
	public boolean deleteAppScreenshot(AppScreenshot model);
	
	/**
	 * 查找版本平台信息
	 */
	public List<AppversionTerraceInfo> queryTerraceInfo();
	
	/**
	 * 查找版本信息
	 */
	public List<AppVersionInfo> queryAppVersionInfo();
	
}
